package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 新闻表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-08-08
 */
@TableName("wz_news")
public class WzNews extends Model<WzNews> {

    private static final long serialVersionUID = 1L;

    /**
     * 新闻编号
     */
    @TableId(value = "adv_id", type = IdType.ID_WORKER)
    private Long advId;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * 新闻标题
     */
    private String title;
    /**
     * 新闻副标题
     */
    private String subtitle;
    /**
     * 封面图片url
     */
    @TableField("cover_url")
    private String coverUrl;
    /**
     * 广告内容
     */
    @TableField("adv_detail")
    private String advDetail;
    /**
     * 有详情
     */
    @TableField("has_detail")
    private Integer hasDetail;
    /**
     * 修改人id
     */
    @TableField("modifier_id")
    private Integer modifierId;
    /**
     * 姓名
     */
    @TableField("modifier_name")
    private String modifierName;
    /**
     * 发布类型：1-后台发布；2-商家发布；3-用户发布
     */
    @TableField("publishing_type")
    private Integer publishingType;
    @TableField("user_code")
    private Long userCode;
    /**
     * 类型：1-非即时广告；2-即时广告
     */
    private Integer type;
    /**
     * 子类型:1-广告;2-新闻;3-调查问卷;4-商家问卷;5-广告问卷;6-知识问卷;100-开启定位;101-数据统计;102-暂无信息;103-新手指导;
     */
    private Integer subtype;
    /**
     * 状态：1-编辑中；2-审核中；3-审核驳回；4-审核通过；5-发布中人数未满；6-发布中人数已满;7-下架；
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 发布时间
     */
    @TableField("release_time")
    private Date releaseTime;
    /**
     * 删除标记:0-否1-是
     */
    @TableField("del_flag")
    private Integer delFlag;
    /**
     * 分享链接
     */
    @TableField("share_link")
    private String shareLink;
    /**
     * 筛选所在城市
     */
    @TableField("screen_city")
    private String screenCity;
    /**
     * 是否大图：0-小图；1-大图；2-3张封面图；
     */
    @TableField("is_enlarge")
    private Integer isEnlarge;
    /**
     * 收藏数量
     */
    @TableField("collection_number")
    private Integer collectionNumber;
    /**
     * 喜欢数量
     */
    @TableField("like_number")
    private Integer likeNumber;
    /**
     * 阅读量
     */
    @TableField("read_number")
    private Integer readNumber;
    /**
     * 点击量
     */
    @TableField("clicks_number")
    private Integer clicksNumber;
    @TableField("questionnaire_id")
    private String questionnaireId;
    /**
     * 是否感兴趣：0-不感兴趣；1-感兴趣;
     */
    @TableField("is_interested")
    private Integer isInterested;
    /**
     * 不感兴趣数量
     */
    @TableField("uninterested_quantity")
    private Integer uninterestedQuantity;
    /**
     * 是否显示：0-不显示；1-显示；
     */
    @TableField("is_show")
    private Integer isShow;
    /**
     * 排序
     */
    private Integer sort;

    @Version
    private Integer version;


    public Long getAdvId() {
        return advId;
    }

    public void setAdvId(Long advId) {
        this.advId = advId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getAdvDetail() {
        return advDetail;
    }

    public void setAdvDetail(String advDetail) {
        this.advDetail = advDetail;
    }

    public Integer getHasDetail() {
        return hasDetail;
    }

    public void setHasDetail(Integer hasDetail) {
        this.hasDetail = hasDetail;
    }

    public Integer getModifierId() {
        return modifierId;
    }

    public void setModifierId(Integer modifierId) {
        this.modifierId = modifierId;
    }

    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    public Integer getPublishingType() {
        return publishingType;
    }

    public void setPublishingType(Integer publishingType) {
        this.publishingType = publishingType;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSubtype() {
        return subtype;
    }

    public void setSubtype(Integer subtype) {
        this.subtype = subtype;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getShareLink() {
        return shareLink;
    }

    public void setShareLink(String shareLink) {
        this.shareLink = shareLink;
    }

    public String getScreenCity() {
        return screenCity;
    }

    public void setScreenCity(String screenCity) {
        this.screenCity = screenCity;
    }

    public Integer getIsEnlarge() {
        return isEnlarge;
    }

    public void setIsEnlarge(Integer isEnlarge) {
        this.isEnlarge = isEnlarge;
    }

    public Integer getCollectionNumber() {
        return collectionNumber;
    }

    public void setCollectionNumber(Integer collectionNumber) {
        this.collectionNumber = collectionNumber;
    }

    public Integer getLikeNumber() {
        return likeNumber;
    }

    public void setLikeNumber(Integer likeNumber) {
        this.likeNumber = likeNumber;
    }

    public Integer getReadNumber() {
        return readNumber;
    }

    public void setReadNumber(Integer readNumber) {
        this.readNumber = readNumber;
    }

    public Integer getClicksNumber() {
        return clicksNumber;
    }

    public void setClicksNumber(Integer clicksNumber) {
        this.clicksNumber = clicksNumber;
    }

    public String getQuestionnaireId() {
        return questionnaireId;
    }

    public void setQuestionnaireId(String questionnaireId) {
        this.questionnaireId = questionnaireId;
    }

    public Integer getIsInterested() {
        return isInterested;
    }

    public void setIsInterested(Integer isInterested) {
        this.isInterested = isInterested;
    }

    public Integer getUninterestedQuantity() {
        return uninterestedQuantity;
    }

    public void setUninterestedQuantity(Integer uninterestedQuantity) {
        this.uninterestedQuantity = uninterestedQuantity;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.advId;
    }

    @Override
    public String toString() {
        return "WzNews{" +
        "advId=" + advId +
        ", nickName=" + nickName +
        ", avatarUrl=" + avatarUrl +
        ", title=" + title +
        ", subtitle=" + subtitle +
        ", coverUrl=" + coverUrl +
        ", advDetail=" + advDetail +
        ", hasDetail=" + hasDetail +
        ", modifierId=" + modifierId +
        ", modifierName=" + modifierName +
        ", publishingType=" + publishingType +
        ", userCode=" + userCode +
        ", type=" + type +
        ", subtype=" + subtype +
        ", status=" + status +
        ", createTime=" + createTime +
        ", releaseTime=" + releaseTime +
        ", delFlag=" + delFlag +
        ", shareLink=" + shareLink +
        ", screenCity=" + screenCity +
        ", isEnlarge=" + isEnlarge +
        ", collectionNumber=" + collectionNumber +
        ", likeNumber=" + likeNumber +
        ", readNumber=" + readNumber +
        ", clicksNumber=" + clicksNumber +
        ", questionnaireId=" + questionnaireId +
        ", isInterested=" + isInterested +
        ", uninterestedQuantity=" + uninterestedQuantity +
        ", isShow=" + isShow +
        ", sort=" + sort +
        ", version=" + version +
        "}";
    }
}
